import Vue from 'vue'
import Vuex from 'vuex'
//引入home中的小仓库
import home from './home/index'
import search from './search/index'
import detail from './detail/index'
import shopcart from './shopcart/index'
import user from './LoginAndRegister/index'
import trade from './trade/index'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    //注册小仓库
    home,
    search,
    detail,
    shopcart,
    user,
    trade,
  }
})
